﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text.RegularExpressions;
using System.Web;
using CrmSpider.Model;
using Utils;
using Infrastructure.Lib.Core;
using Infrastructure.Lib.Core.NPOIHelper;
using NPOI.HSSF.UserModel;
using NPOI.SS.UserModel;

namespace CrmSpider
{
    class Program
    {
        private static readonly HttpClientWrapper _client = new HttpClientWrapper("http://202.109.200.36:9911/CRM/");


        private static Dictionary<string, Type> selectedDictionary = new Dictionary<string, Type>{
            {
                "x20_state",typeof(IndustryDictionary)
            },
            {
                "x21_state",typeof(BusinessDictionary)
            },
            {
                "x22_state",typeof(CustomerLevelDictionary)
            }
        };

        static void Main(string[] args)
        {
            #region testStr
            var testStr = @"

<!DOCTYPE html>

<html xmlns=""http://www.w3.org/1999/xhtml"">
<head><meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"" /><title>
	添加客户
</title>
<meta name=""powered-by"" content=""FineUI v3.3.3 - 基于 ExtJS 的开源 ASP.NET 控件库 - http://fineui.com/"" />
<link href=""/extjs/res/css/blue.css"" rel=""stylesheet"" type=""text/css""/>

    <style>
        .mleft5 {
            text-align: right;
        }

        .x-grid3-row-body .expander {
            padding: 5px;
            background-color: #dceff3;
        }

            .x-grid3-row-body .expander p {
                padding: 5px;
                line-height: 20px;
            }

            .x-grid3-row-body .expander strong {
                font-weight: bold;
            }
    </style>
</head>
<body>
    <form name=""form_添加客户"" method=""post"" action=""CustomersNewEdit.aspx?id=9eab88e4-20c4-4435-b0b6-2c11f657dc44"" id=""form_添加客户"">
<input type=""hidden"" name=""__VIEWSTATE"" id=""__VIEWSTATE"" value=""/wEPDwUKLTI1OTU1NTQ1OA9kFgICAQ9kFgICAw9kFgRmD2QWAmYPFgIeB1Zpc2libGVoZAIBD2QWBAICD2QWAmYPZBYCAgEPFgIfAGhkAgQPZBYCAgEPZBYCAgcPZBYCZg8VBzAxMjnmiYDvvIg4MjfnqbrmsJTliqjlipvnoJTnqbbmiYDvvIjkvY7pgJ/mi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zFf5re75Yqg5a6i5oi3JFRhYlN0cmlwMSRUYWI1JEdyaWRf6Lef6Liq6K6w5b2VBURQYW5lbF8xX+a3u+WKoOWuouaItyRUYWJTdHJpcDEkVGFiNSRXaW5kb3df6Lef6Liq6K6w5b2VX+aWsOWinue8lui+kQVHUGFuZWxfMV/mt7vliqDlrqLmiLckVGFiU3RyaXAxJFRhYjUkV2luZG93X+i3n+i4quiusOW9lV/nvJbovpHkuI3liLfmlrAFNVBhbmVsXzFf5re75Yqg5a6i5oi3JFRhYlN0cmlwMSRUYWI1JEdyaWRf6Lef6Liq6K6w5b2VDw9kZWQFMlBhbmVsXzFf5re75Yqg5a6i5oi3JFRhYlN0cmlwMSRUYWI0JEdyaWRf6LSf6LSj5Lq6Dw9kZWQFL1BhbmVsXzFf5re75Yqg5a6i5oi3JFRhYlN0cmlwMSRUYWIzJEdyaWRf6aG555uuDw9kZWQFMlBhbmVsXzFf5re75Yqg5a6i5oi3JFRhYlN0cmlwMSRUYWIyJEdyaWRf6IGU57O75Lq6Dw9kZWQ7Nti0vjKhn2CamMu4cEYG00R85m2I/rrZRdzjKYtnVg=="" />

        <div id='loading-mask'></div><div id='loading'><div class='loading-indicator'><img align='absmiddle' src='/extjs/res/images/loading_32.gif'/></div></div><div id=""PageManager_添加客户_wrapper""></div>
        <div id=""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_tpls"" class=""x-grid-tpls x-hide-display""></div><div id=""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_tpls"" class=""x-grid-tpls x-hide-display""></div><div id=""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_tpls"" class=""x-grid-tpls x-hide-display""></div><div id=""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_tpls"" class=""x-grid-tpls x-hide-display""><div class=""x-grid-tpl"" id=""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl07"">
                                                <div class=""expander"">
                                                    <p>
                                                        <strong>跟踪客户：</strong>129所（827空气动力研究所（低速所）<strong>&nbsp&nbsp&nbsp&nbsp跟踪项目：</strong>绵阳市地质灾害监测系统<strong> &nbsp&nbsp&nbsp&nbsp联系人：</strong>宋斌
                                                    </p>
                                                    <p>
                                                        <strong>跟踪人：</strong>王剑波<strong>&nbsp&nbsp&nbsp&nbsp跟踪时间：</strong>2017/6/30 9:39:40
                                                    </p>
                                                    <p>
                                                        本项目为四川王帆项目，由公司项目组查勇配合，具体信息请跟查勇对接<br><br>业主建设想法：两个滑坡体，相隔有500米左右。每个滑坡体300米宽，高可能有100米。应该建两套降雨量、山体裂缝、土壤湿度、土体深部位移、视频监控设备：配中心设备和软件，以及预警设备和移动终端、电脑<br>需配合事项：需要帮业主提供一份项目建议书，用以申报资金，目前业主自己估算的预算为150万，包含软硬件内容
                                                    </p>
                                                    <p>
                                                        
                                                    </p>
                                                </div>
                                            </div><div class=""x-grid-tpl"" id=""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl08"">
                                            </div><div class=""x-grid-tpl"" id=""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl09"">
                                            </div><div class=""x-grid-tpl"" id=""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl10"">
                                            </div></div>

    
<script src=""/extjs/ext-debug.js"" type=""text/javascript""></script>
<script src=""/extjs/x-debug.js"" type=""text/javascript""></script>
<script src=""/extjs/lang/zh_CN.js"" type=""text/javascript""></script>

<script type=""text/javascript"">
//<![CDATA[
Ext.onReady(function () {
    X.init();
    X.util.init('side', 100, '：', true, '/extjs/res/images/s.gif', true, 'default', true);
    Ext.Ajax.timeout = 600000;
    var x4 = new Ext.Button({
        x_state: {},
        id: ""Panel_1_添加客户_Toolbar_添加客户_Button_保存_添加客户"",
        text: ""保存"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/system_save.gif"",
        handler: function () {
            if (!X.util.validForms([""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户""], '_self', true)) {
                return false;
            }
            X.disable('Panel_1_添加客户_Toolbar_添加客户_Button_保存_添加客户');
            __doPostBack('Panel_1_添加客户$Toolbar_添加客户$Button_保存_添加客户', '');
        }
    });
    var x5_state = {
        ""OnClientClick"": ""(function(){var aw=X.wnd.getActiveWindow();if(aw){aw[0].x_hide_postback();}})();""
    };
    var x5 = new Ext.Button({
        x_state: x5_state,
        id: ""Panel_1_添加客户_Toolbar_添加客户_Button_关闭_添加客户"",
        text: ""关闭"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/system_close.gif"",
        handler: function () {
            (function () {
                var aw = X.wnd.getActiveWindow();
                if (aw) {
                    aw[0].x_hide_postback();
                }
            })();
        }
    });
    var x3 = new Ext.Toolbar({
        x_state: {},
        id: ""Panel_1_添加客户_Toolbar_添加客户"",
        items: [x4, x5]
    });
    var x12_state = {
        ""Text"": ""true"",
        ""Text_GZ"": """"
    };
    var x12 = new Ext.form.Hidden({
        x_state: x12_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_Hidden_是否编辑"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$Hidden_是否编辑"",
        value: ""true""
    });
    var x13_state = {
        ""Text"": ""9eab88e4-20c4-4435-b0b6-2c11f657dc44""
    };
    var x13 = new Ext.form.DisplayField({
        x_state: x13_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_Label_客户编号"",
        hidden: true,
        fieldLabel: ""客户编号"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$Label_客户编号"",
        value: ""<span>9eab88e4-20c4-4435-b0b6-2c11f657dc44</span>""
    });
    var x14_state = {
        ""Text"": ""c62c45f2-63fc-4a40-b980-58590547aba0"",
        ""Text_GZ"": """"
    };
    var x14 = new Ext.form.Hidden({
        x_state: x14_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_Hidden_行政区划编号"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$Hidden_行政区划编号"",
        value: ""c62c45f2-63fc-4a40-b980-58590547aba0""
    });
    var x15_state = {
        ""OnClientTriggerClick"": ""X('Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑').x_property_save_state_control_client_ids=['Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_Hidden_行政区划编号','Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_tbx_行政区划'];X('Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑').x_show('/CRM/AssignRegionCheck.aspx?CustomersChoose=True','编辑');"",
        ""Text"": ""中国/四川省/绵阳市"",
        ""Text_GZ"": """"
    };
    var x15 = new Ext.form.TriggerField({
        x_state: x15_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_tbx_行政区划"",
        fieldLabel: ""行政区划<span style=\""color:red;\"">*</span>"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$tbx_行政区划"",
        readOnly: true,
        allowBlank: false,
        emptyText: ""选择行政区划"",
        value: ""中国/四川省/绵阳市"",
        editable: false,
        triggerClass: ""x-form-search-trigger"",
        onTriggerClick: function () {
            X('Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑').x_property_save_state_control_client_ids = ['Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_Hidden_行政区划编号', 'Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_tbx_行政区划'];
            X('Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑').x_show('/CRM/AssignRegionCheck.aspx?CustomersChoose=True', '编辑');
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$tbx_行政区划', '');
        },
        listeners: {
            specialkey: function (field, e) {
                if (e.getKey() == e.ENTER) {
                    x15.onTriggerClick();
                    e.stopEvent();
                }
            }
        }
    });
    var x16 = new Ext.form.Hidden({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_Hidden_上级客户编号"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$Hidden_上级客户编号""
    });
    var x17 = new Ext.form.TriggerField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_tbx_上级客户名称"",
        fieldLabel: ""上级客户"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$tbx_上级客户名称"",
        emptyText: ""选择上级客户"",
        editable: false,
        triggerClass: ""x-form-search-trigger"",
        onTriggerClick: function () {
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$tbx_上级客户名称', '');
        },
        listeners: {
            specialkey: function (field, e) {
                if (e.getKey() == e.ENTER) {
                    x17.onTriggerClick();
                    e.stopEvent();
                }
            }
        }
    });
    var x18_state = {
        ""Text"": ""129所（827空气动力研究所（低速所）"",
        ""Text_GZ"": """"
    };
    var x18 = new Ext.form.TextField({
        x_state: x18_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_TextBox_客户名称"",
        fieldLabel: ""客户名称<span style=\""color:red;\"">*</span>"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$TextBox_客户名称"",
        readOnly: true,
        allowBlank: false,
        value: ""129所（827空气动力研究所（低速所）""
    });
    var x19 = new Ext.form.TextField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_TextBox_客户邮编"",
        fieldLabel: ""客户邮编"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$TextBox_客户邮编""
    });
    var x20_state = {
        ""DataTextField"": ""行业名称"",
        ""DataValueField"": ""行业编号"",
        ""X_Items"": [[""01680b2f-20ca-422f-812b-38a1a2edcf01"", ""水利"", 1], [""68b79e8a-ced1-49f5-9517-fb8f27acc0ac"", ""水务"", 1], [""9d3a547f-9fd4-479e-8412-b361104f2ae2"", ""应急"", 1], [""4f06151b-0b03-4c44-b129-8756ee7d7354"", ""自然资源"", 1], [""f4497f57-593c-44a8-88fd-1f13caba3388"", ""生态环境"", 1], [""c6f23f12-d69b-4818-91cc-4afa19e20191"", ""农业农村"", 1], [""03381652-1d85-48ae-95b4-66d194b74e74"", ""其他"", 1]],
        ""X_Items_GZ"": """",
        ""SelectedValue"": ""03381652-1d85-48ae-95b4-66d194b74e74""
    };
    var x20 = new Ext.form.ComboBox({
        x_state: x20_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_DropDownList_行业"",
        fieldLabel: ""行业"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$DropDownList_行业"",
        readOnly: true,
        editable: false,
        forceSelection: true,
        resizable: true,
        hiddenName: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$DropDownList_行业"",
        store: new Ext.data.ArrayStore({
            fields: ['value', 'text', 'enabled', 'prefix'],
            data: X.simulateTree.transform(x20_state.X_Items)
        }),
        value: x20_state.SelectedValue,
        tpl: X.util.ddlTPL,
        mode: ""local"",
        triggerAction: ""all"",
        listeners: {
            select: function (cmp) {
                if (cmp.x_tmp_lastvalue !== cmp.getValue()) {
                    __doPostBack('Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$DropDownList_行业', '');
                }
            },
            beforeselect: function (cmp, record, index) {
                if (!record.data.enabled) {
                    return false;
                }
                cmp.x_tmp_lastvalue = cmp.getValue();
            }
        }
    });
    var x21_state = {
        ""DataTextField"": ""业务类别名称"",
        ""DataValueField"": ""业务类别编号"",
        ""X_Items"": [[""5517fe15-ebcd-4831-a622-959b3eede271"", ""智慧城市"", 1], [""bb64ecb5-79fc-4e14-b7b6-f534e84e6cc9"", ""气象"", 1], [""444789a8-6402-4c35-a210-18dbd2d06a6f"", ""住建"", 1], [""9d91011e-641b-452d-b63a-b26fa97e0587"", ""交通"", 1], [""198d308d-3278-4732-ba3a-0ccb464f7be0"", ""公安"", 1], [""9b88091a-0bd5-46b0-8ce7-63550e7b904f"", ""其他"", 1]],
        ""X_Items_GZ"": """",
        ""SelectedValue"": ""5517fe15-ebcd-4831-a622-959b3eede271""
    };
    var x21 = new Ext.form.ComboBox({
        x_state: x21_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_DropDownList_业务类别"",
        fieldLabel: ""业务类别"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$DropDownList_业务类别"",
        editable: false,
        forceSelection: true,
        resizable: true,
        hiddenName: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$DropDownList_业务类别"",
        store: new Ext.data.ArrayStore({
            fields: ['value', 'text', 'enabled', 'prefix'],
            data: X.simulateTree.transform(x21_state.X_Items)
        }),
        value: x21_state.SelectedValue,
        tpl: X.util.ddlTPL,
        mode: ""local"",
        triggerAction: ""all"",
        listeners: {
            beforeselect: function (cmp, record, index) {
                if (!record.data.enabled) {
                    return false;
                }
            }
        }
    });
    var x22_state = {
        ""DataTextField"": ""客户级别名称"",
        ""DataValueField"": ""客户级别编号"",
        ""X_Items"": [[""30f065a3-5d8f-42f7-99d7-535e9d8ff671"", ""部委"", 1], [""30261fcd-ee1f-451c-a68c-30b98d1574b5"", ""部委机关"", 1], [""5229e118-f6ee-48db-924a-eb34e39c0070"", ""部委直属单位"", 1], [""5689230d-9475-4bcb-baf2-7b667a6b7fa4"", ""省厅"", 1], [""28490040-cc8a-4387-8bf3-3d662859669e"", ""省厅机关"", 1], [""b6afe354-9932-422b-9742-49e508fca831"", ""省厅直属机关"", 1], [""5427f503-c044-47c3-bd5e-fc3044a34fad"", ""市局"", 1], [""2bb2645a-9b14-4b23-a8b7-3d599b9ee9a0"", ""市局机关"", 1], [""4db810e6-fd2c-4fb4-8813-477881642c44"", ""市局直属单位"", 1], [""46410bcd-3eec-4cd9-be1a-9ed9174d85f0"", ""县（区、市）局"", 1], [""68bb7be7-e718-4af7-8c26-422a3fb78b22"", ""县（区、市）局机关"", 1], [""e3f1e48f-c6da-47f0-a4a6-2db4cf092f93"", ""县（区、市）直属单位"", 1], [""6b42a779-666a-44c8-a292-bbb6044bdc08"", ""乡镇级单位"", 1]],
        ""X_Items_GZ"": """",
        ""SelectedValue"": ""5427f503-c044-47c3-bd5e-fc3044a34fad""
    };
    var x22 = new Ext.form.ComboBox({
        x_state: x22_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_DropDownList_客户级别"",
        fieldLabel: ""客户级别"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$DropDownList_客户级别"",
        editable: false,
        forceSelection: true,
        resizable: true,
        hiddenName: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$DropDownList_客户级别"",
        store: new Ext.data.ArrayStore({
            fields: ['value', 'text', 'enabled', 'prefix'],
            data: X.simulateTree.transform(x22_state.X_Items)
        }),
        value: x22_state.SelectedValue,
        tpl: X.util.ddlTPL,
        mode: ""local"",
        triggerAction: ""all"",
        listeners: {
            beforeselect: function (cmp, record, index) {
                if (!record.data.enabled) {
                    return false;
                }
            }
        }
    });
    var x23 = new Ext.form.TextField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_TextBox_客户最终等级"",
        fieldLabel: ""客户最终等级"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$TextBox_客户最终等级""
    });
    var x24 = new Ext.form.TextField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_TextBox_客户网址"",
        fieldLabel: ""客户网址"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$TextBox_客户网址""
    });
    var x25_state = {
        ""Text"": ""四川省绵阳市北川县827空气动力研究所"",
        ""Text_GZ"": """"
    };
    var x25 = new Ext.form.TextField({
        x_state: x25_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_TextBox_客户地址"",
        fieldLabel: ""客户地址"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$TextBox_客户地址"",
        value: ""四川省绵阳市北川县827空气动力研究所""
    });
    var x26 = new Ext.form.TextArea({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_TextArea_客户简介"",
        height: 60,
        fieldLabel: ""客户简介"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$TextArea_客户简介""
    });
    var x27_state = {
        ""DataTextField"": ""客户类型名称"",
        ""DataValueField"": ""客户类型编号"",
        ""X_Items"": [[""ddd35761-6ad2-46d5-80d2-5933a3d322f1"", ""客户"", 1]],
        ""X_Items_GZ"": """",
        ""SelectedValue"": ""ddd35761-6ad2-46d5-80d2-5933a3d322f1""
    };
    var x27 = new Ext.form.ComboBox({
        x_state: x27_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户_DropDownList_客户类型"",
        hidden: true,
        fieldLabel: ""客户类型"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$DropDownList_客户类型"",
        readOnly: true,
        editable: false,
        forceSelection: true,
        resizable: true,
        hiddenName: ""Panel_1_添加客户$TabStrip1$Tab1$SimpleForm_添加客户$DropDownList_客户类型"",
        store: new Ext.data.ArrayStore({
            fields: ['value', 'text', 'enabled', 'prefix'],
            data: X.simulateTree.transform(x27_state.X_Items)
        }),
        value: x27_state.SelectedValue,
        tpl: X.util.ddlTPL,
        mode: ""local"",
        triggerAction: ""all"",
        listeners: {
            beforeselect: function (cmp, record, index) {
                if (!record.data.enabled) {
                    return false;
                }
            }
        }
    });
    var x11 = new Ext.Panel({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab1_SimpleForm_添加客户"",
        layout: ""form"",
        items: [x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27],
        bodyStyle: ""padding:0px;background-color:#DFE8F6;"",
        border: false,
        autoScroll: true,
        animCollapse: true,
        collapsible: true,
        collapsed: false,
        header: false,
        listeners: {
            change: function () {
                X.util.setPageStateChanged();
            }
        }
    });
    var x6 = new Ext.Panel({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab1"",
        layout: ""fit"",
        items: [x11],
        bodyStyle: ""padding:0px;background-color:#DFE8F6;"",
        border: false,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""客户信息"",
        x_type: ""tab""
    });
    var x31 = new Ext.Button({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_Button_联系人_新增"",
        text: ""新增"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/add.png"",
        handler: function () {
            X.disable('Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_Button_联系人_新增');
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab2$Toolbar4$Button_联系人_新增', '');
        }
    });
    var x32_state = {
        ""OnClientClick"": ""if(!X('Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人').getSelectionModel().hasSelection()){window.X.alert('至少选择一项！');return false;}"",
        ""ConfirmText"": ""您确定要删除选中的记录吗？"",
        ""ConfirmTarget"": ""Top""
    };
    var x32 = new Ext.Button({
        x_state: x32_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_Button_联系人_删除"",
        text: ""删除"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/delete.png"",
        handler: function () {
            if (!X('Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人').getSelectionModel().hasSelection()) {
                window.X.alert('至少选择一项！');
                return false;
            };
            X.confirm('_top', '', '您确定要删除选中的记录吗？', 'X.disable(\'Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_Button_联系人_删除\');__doPostBack(\'Panel_1_添加客户$TabStrip1$Tab2$Toolbar4$Button_联系人_删除\',\'\');');
        }
    });
    var x33 = new Ext.Toolbar.Fill({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_ToolbarFill1""
    });
    var x34_xstate = {};
    var x34_xitems = {
        ""X_Items"": [[""在位"", ""1""], [""历任"", ""0""]],
        ""X_Items_GZ"": """",
        ""SelectedValue"": ""1""
    };
    var x34 = new Ext.form.RadioGroup({
        x_state: x34_xstate,
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_RadioButtonList_异动状况"",
        width: 100,
        columns: ""auto"",
        items: X.util.resolveCheckBoxGroup('Panel_1_添加客户$TabStrip1$Tab2$Toolbar4$RadioButtonList_异动状况', x34_xitems, true),
        listeners: {
            change: function (group, radio) {
                if (typeof(radio) !== 'boolean') {
                    __doPostBack('Panel_1_添加客户$TabStrip1$Tab2$Toolbar4$RadioButtonList_异动状况', '');
                }
            }
        }
    });
    var x35 = new Ext.Button({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_Button_联系人_显示全部"",
        text: ""显示全部"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/shapes_many_select.png"",
        handler: function () {
            X.disable('Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_Button_联系人_显示全部');
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab2$Toolbar4$Button_联系人_显示全部', '');
        }
    });
    var x36 = new Ext.Toolbar.Separator({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_ToolbarSeparator_联系人_查询""
    });
    var x37 = new Ext.form.DisplayField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_Label_联系人_关键字"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab2$Toolbar4$Label_联系人_关键字"",
        value: ""<span>关键字：</span>""
    });
    var x38 = new Ext.form.TriggerField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Toolbar4_TextBox_联系人_关键字"",
        width: 156,
        hideLabel: true,
        name: ""Panel_1_添加客户$TabStrip1$Tab2$Toolbar4$TextBox_联系人_关键字"",
        triggerClass: ""x-form-search-trigger"",
        onTriggerClick: function () {
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab2$Toolbar4$TextBox_联系人_关键字', '');
        },
        listeners: {
            specialkey: function (field, e) {
                if (e.getKey() == e.ENTER) {
                    x38.onTriggerClick();
                    e.stopEvent();
                }
            }
        }
    });
    var x30 = new Ext.Toolbar({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Toolbar4"",
        items: [x31, x32, x33, x34, x35, x36, x37, x38]
    });
    var x39 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl00"",
        hidden: true,
        header: ""联系人编号"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl00""
    };
    var x40 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl01"",
        hidden: true,
        header: ""客户编号"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl01""
    };
    var x41 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl02"",
        header: ""联系人姓名"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl02"",
        width: 120
    };
    var x42 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl03"",
        header: ""手机"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl03"",
        width: 120
    };
    var x43 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl04"",
        header: ""邮箱"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl04"",
        width: 120
    };
    var x44 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl05"",
        header: ""QQ"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl05"",
        width: 120
    };
    var x45 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl06"",
        header: ""联系人职位名称"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl06"",
        width: 120
    };
    var x46 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl07"",
        header: ""行政级别名称"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl07"",
        width: 120
    };
    var x47 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl08"",
        header: ""异动状况"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl08"",
        width: 70
    };
    var x48 = {
        x_state: {},
        id: ""WindowField_编辑"",
        header: ""编辑"",
        dataIndex: ""WindowField_编辑""
    };
    var x28_state = {
        ""RecordCount"": 1,
        ""X_Rows"": {
            ""Values"": [[""e0f66a2d-debc-433d-9d25-bee17429517e"", ""9eab88e4-20c4-4435-b0b6-2c11f657dc44"", ""宋斌"", ""15881640000"", """", """", """", ""无"", ""在位"", ""<a ext:qtip=\""编辑\""  href=\""javascript:;\"" onclick=\""javascript:X(&#39;Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑&#39;).x_show(&#39;/CRM/ContactNewEdit.aspx?id=e0f66a2d-debc-433d-9d25-bee17429517e&amp;CustomersID=9eab88e4-20c4-4435-b0b6-2c11f657dc44&#39;,&#39;&#39;);\""><img src=\""/icon/table_edit.png\""  ext:qtip=\""编辑\""  /></a>""]],
            ""DataKeys"": [[""e0f66a2d-debc-433d-9d25-bee17429517e"", ""宋斌""]],
            ""States"": [[]]
        },
        ""X_Rows_GZ"": """",
        ""HiddenColumnIndexArray"": [2, 3]
    };
    var x28_sm = new Ext.grid.CheckboxSelectionModel({
        singleSelect: false
    });
    var x28_store = new Ext.data.ArrayStore({
        fields: [""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl00"", ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl01"", ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl02"", ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl03"", ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl04"", ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl05"", ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl06"", ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl07"", ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人_ctl08"", ""WindowField_编辑""],
        remoteSort: true,
        listeners: {
            beforeload: function (store, options) {
                if (!store.headerclickprocessed && options.params.sort) {
                    __doPostBack('Panel_1_添加客户$TabStrip1$Tab2$Grid_联系人', 'Sort$' + options.params.sort + '$' + options.params.dir);
                };
                store.headerclickprocessed = false;
                return false;
            }
        }
    });
    var x28_paging = new Ext.ux.SimplePagingToolbar({
        pageSize: 10,
        pageIndex: 0,
        recordCount: 1,
        pageCount: 1,
        x_startRowIndex: 0,
        x_endRowIndex: 0,
        displayInfo: true,
        onLoadPage: function (pageIndex) {
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab2$Grid_联系人', 'Page$' + pageIndex);
        }
    });
    var x28_cm = new Ext.grid.ColumnModel({
        columns: [new Ext.grid.RowNumberer({
            x_paging: x28_paging
        }), x28_sm, x39, x40, x41, x42, x43, x44, x45, x46, x47, x48],
        defaults: {
            width: 100
        }
    });
    var x28 = new Ext.grid.GridPanel({
        x_state: x28_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Grid_联系人"",
        height: 440,
        bodyStyle: """",
        border: false,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        header: false,
        sm: x28_sm,
        cm: x28_cm,
        store: x28_store,
        enableHdMenu: false,
        stripeRows: true,
        bbar: x28_paging,
        draggable: false,
        enableColumnMove: false,
        enableDragDrop: false,
        listeners: {
            headerclick: function (cmp, columnIndex) {
                if (!cmp.getColumnModel().config[columnIndex].sortable) {
                    return false;
                }
                var args = 'Sort$' + columnIndex;
                __doPostBack('Panel_1_添加客户$TabStrip1$Tab2$Grid_联系人', args);
                cmp.getStore().headerclickprocessed = true;
            },
            viewready: function (cmp) {
                cmp.x_setSortIcon(-1, 'ASC');
                cmp.x_selectRows();
            },
            render: function (cmp) {
                cmp.x_loadData();
                cmp.x_updateColumnsHiddenStatus();
            }
        }
    });
    X.util.appendFormNode('<div class=""x-window-wrapper"" id=""Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑_wrapper""></div>');
    X.util.setHiddenFieldValue('Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑_Hidden', 'true');
    var x29 = new Ext.Window({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑"",
        listeners: {
            maximize: function (win) {
                X.wnd.fixMaximize(win);
            },
            render: function (win) {
                win.tools.close.addListener('click', function () {
                    X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑'), function () {
                        X('Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑').x_hide_postback();
                    });
                });
            }
        },
        width: 800,
        height: 660,
        bodyStyle: """",
        border: true,
        x_iframe: true,
        x_iframe_url: ""about:blank"",
        x_iframe_name: ""x29_02e9b415b411497c8d07fb2249d24212"",
        x_iframe_loaded: true,
        html: ""<iframe src=\""about:blank\"" name=\""x29_02e9b415b411497c8d07fb2249d24212\"" frameborder=\""0\"" style=\""height:100%;width:100%;overflow:auto;\""></iframe>"",
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""编辑"",
        closeAction: ""hide"",
        plain: true,
        modal: true,
        draggable: true,
        minimizable: false,
        minHeight: 100,
        minWidth: 200,
        resizable: false,
        manager: X.window_default_group,
        x_property_target: ""_top"",
        x_property_guid: ""x29_02e9b415b411497c8d07fb2249d24212"",
        x_property_left: """",
        x_property_top: """",
        x_property_position: false,
        name: ""Panel_1_添加客户$TabStrip1$Tab2$Window_新增编辑"",
        maximizable: true,
        closable: true,
        onEsc: function () {
            X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑'), function () {
                X('Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑').x_hide_postback();
            });
        }
    });
    var x7 = new Ext.Panel({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab2"",
        layout: ""fit"",
        items: [x28, x29],
        tbar: x30,
        bodyStyle: ""padding:0px;"",
        border: false,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""联系人列表"",
        x_type: ""tab""
    });
    var x52 = new Ext.Button({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Toolbar1_Button_项目_新增"",
        text: ""新增"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/add.png"",
        handler: function () {
            X.disable('Panel_1_添加客户_TabStrip1_Tab3_Toolbar1_Button_项目_新增');
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab3$Toolbar1$Button_项目_新增', '');
        }
    });
    var x53 = new Ext.Toolbar.Fill({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Toolbar1_ToolbarFill2""
    });
    var x54_state = {
        ""Text"": ""显示全部""
    };
    var x54 = new Ext.form.DisplayField({
        x_state: x54_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Toolbar1_Label_项目_查询类型"",
        hidden: true,
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab3$Toolbar1$Label_项目_查询类型"",
        value: ""<span>显示全部</span>""
    });
    var x55 = new Ext.Button({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Toolbar1_Button_项目_显示全部"",
        text: ""显示全部"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/shapes_many_select.png"",
        handler: function () {
            X.disable('Panel_1_添加客户_TabStrip1_Tab3_Toolbar1_Button_项目_显示全部');
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab3$Toolbar1$Button_项目_显示全部', '');
        }
    });
    var x56 = new Ext.Toolbar.Separator({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Toolbar1_ToolbarSeparator_项目_查询""
    });
    var x57 = new Ext.form.DisplayField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Toolbar1_Label_项目_关键字"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab3$Toolbar1$Label_项目_关键字"",
        value: ""<span>关键字：</span>""
    });
    var x58 = new Ext.form.TriggerField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Toolbar1_TextBox_项目_关键字"",
        width: 156,
        hideLabel: true,
        name: ""Panel_1_添加客户$TabStrip1$Tab3$Toolbar1$TextBox_项目_关键字"",
        triggerClass: ""x-form-search-trigger"",
        onTriggerClick: function () {
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab3$Toolbar1$TextBox_项目_关键字', '');
        },
        listeners: {
            specialkey: function (field, e) {
                if (e.getKey() == e.ENTER) {
                    x58.onTriggerClick();
                    e.stopEvent();
                }
            }
        }
    });
    var x51 = new Ext.Toolbar({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Toolbar1"",
        items: [x52, x53, x54, x55, x56, x57, x58]
    });
    var x59 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl00"",
        hidden: true,
        header: ""项目编号"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl00""
    };
    var x60 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl01"",
        hidden: true,
        header: ""客户编号"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl01""
    };
    var x61 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl02"",
        header: ""项目名称"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl02"",
        width: 120
    };
    var x62 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl03"",
        header: ""客户名称"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl03"",
        width: 120
    };
    var x63 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl04"",
        header: ""项目类型"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl04"",
        width: 120
    };
    var x64 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl05"",
        header: ""项目预算"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl05"",
        width: 120
    };
    var x65 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl06"",
        header: ""成熟度"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl06"",
        width: 120
    };
    var x66 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl07"",
        header: ""项目节点"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl07"",
        width: 120
    };
    var x67 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl08"",
        header: ""预计成交时间"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl08"",
        width: 120
    };
    var x68 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl09"",
        header: ""预计成交额(万)"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl09"",
        width: 120
    };
    var x69 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl10"",
        header: ""跟踪人"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl10"",
        width: 120
    };
    var x70 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl11"",
        header: ""最后跟踪时间"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl11"",
        width: 120
    };
    var x71 = {
        x_state: {},
        id: ""WindowField_项目_编辑"",
        header: ""编辑"",
        dataIndex: ""WindowField_项目_编辑""
    };
    var x72 = {
        x_state: {},
        id: ""WindowField_跟踪记录填写"",
        header: ""跟踪记录填写"",
        dataIndex: ""WindowField_跟踪记录填写""
    };
    var x49_state = {
        ""RecordCount"": 1,
        ""X_Rows"": {
            ""Values"": [[""0cb5a26d-c4a4-4acb-83b4-7a2430fca306"", ""9eab88e4-20c4-4435-b0b6-2c11f657dc44"", ""绵阳市地质灾害监测系统"", ""129所（827空气动力研究所（低速所）"", """", ""150"", """", ""P0"", ""2017/12/1 0:00:00"", ""0"", """", """", ""<a ext:qtip=\""编辑\""  href=\""javascript:;\"" onclick=\""javascript:X(&#39;Panel_1_添加客户_TabStrip1_Tab3_Window_项目_新增编辑&#39;).x_show(&#39;/CRM/ProjectNewEdit.aspx?id=0cb5a26d-c4a4-4acb-83b4-7a2430fca306&amp;CustomersID=9eab88e4-20c4-4435-b0b6-2c11f657dc44&#39;,&#39;编辑 - 绵阳市地质灾害监测系统&#39;);\""><img src=\""/icon/table_edit.png\""  ext:qtip=\""编辑\""  /></a>"", ""<a ext:qtip=\""编辑\""  href=\""javascript:;\"" onclick=\""javascript:X(&#39;Panel_1_添加客户_TabStrip1_Tab2_Window_新增编辑&#39;).x_show(&#39;/CRM/TrackRecordNewEdit.aspx?Type=Customers&amp;CustomersID=9eab88e4-20c4-4435-b0b6-2c11f657dc44&amp;ProjectID=0cb5a26d-c4a4-4acb-83b4-7a2430fca306&#39;,&#39;&#39;);\""><img src=\""/icon/table_edit.png\""  ext:qtip=\""编辑\""  /></a>""]],
            ""DataKeys"": [[""0cb5a26d-c4a4-4acb-83b4-7a2430fca306"", null]],
            ""States"": [[]]
        },
        ""X_Rows_GZ"": """",
        ""HiddenColumnIndexArray"": [2, 3]
    };
    var x49_sm = new Ext.grid.CheckboxSelectionModel({
        singleSelect: false
    });
    var x49_store = new Ext.data.ArrayStore({
        fields: [""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl00"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl01"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl02"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl03"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl04"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl05"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl06"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl07"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl08"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl09"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl10"", ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目_ctl11"", ""WindowField_项目_编辑"", ""WindowField_跟踪记录填写""],
        remoteSort: true,
        listeners: {
            beforeload: function (store, options) {
                if (!store.headerclickprocessed && options.params.sort) {
                    __doPostBack('Panel_1_添加客户$TabStrip1$Tab3$Grid_项目', 'Sort$' + options.params.sort + '$' + options.params.dir);
                };
                store.headerclickprocessed = false;
                return false;
            }
        }
    });
    var x49_paging = new Ext.ux.SimplePagingToolbar({
        pageSize: 20,
        pageIndex: 0,
        recordCount: 1,
        pageCount: 1,
        x_startRowIndex: 0,
        x_endRowIndex: 0,
        displayInfo: true,
        onLoadPage: function (pageIndex) {
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab3$Grid_项目', 'Page$' + pageIndex);
        }
    });
    var x49_cm = new Ext.grid.ColumnModel({
        columns: [new Ext.grid.RowNumberer({
            x_paging: x49_paging
        }), x49_sm, x59, x60, x61, x62, x63, x64, x65, x66, x67, x68, x69, x70, x71, x72],
        defaults: {
            width: 100
        }
    });
    var x49 = new Ext.grid.GridPanel({
        x_state: x49_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Grid_项目"",
        height: 440,
        bodyStyle: """",
        border: false,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        header: false,
        sm: x49_sm,
        cm: x49_cm,
        store: x49_store,
        enableHdMenu: false,
        stripeRows: true,
        bbar: x49_paging,
        draggable: false,
        enableColumnMove: false,
        enableDragDrop: false,
        listeners: {
            headerclick: function (cmp, columnIndex) {
                if (!cmp.getColumnModel().config[columnIndex].sortable) {
                    return false;
                }
                var args = 'Sort$' + columnIndex;
                __doPostBack('Panel_1_添加客户$TabStrip1$Tab3$Grid_项目', args);
                cmp.getStore().headerclickprocessed = true;
            },
            viewready: function (cmp) {
                cmp.x_setSortIcon(-1, 'ASC');
                cmp.x_selectRows();
            },
            render: function (cmp) {
                cmp.x_loadData();
                cmp.x_updateColumnsHiddenStatus();
            }
        }
    });
    X.util.appendFormNode('<div class=""x-window-wrapper"" id=""Panel_1_添加客户_TabStrip1_Tab3_Window_项目_新增编辑_wrapper""></div>');
    X.util.setHiddenFieldValue('Panel_1_添加客户_TabStrip1_Tab3_Window_项目_新增编辑_Hidden', 'true');
    var x50 = new Ext.Window({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3_Window_项目_新增编辑"",
        listeners: {
            maximize: function (win) {
                X.wnd.fixMaximize(win);
            },
            render: function (win) {
                win.tools.close.addListener('click', function () {
                    X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab3_Window_项目_新增编辑'), function () {
                        X('Panel_1_添加客户_TabStrip1_Tab3_Window_项目_新增编辑').x_hide_postback();
                    });
                });
            }
        },
        width: 900,
        height: 460,
        bodyStyle: """",
        border: true,
        x_iframe: true,
        x_iframe_url: ""about:blank"",
        x_iframe_name: ""x50_a7bbad0c45b448749a70532a64fa2eb0"",
        x_iframe_loaded: true,
        html: ""<iframe src=\""about:blank\"" name=\""x50_a7bbad0c45b448749a70532a64fa2eb0\"" frameborder=\""0\"" style=\""height:100%;width:100%;overflow:auto;\""></iframe>"",
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""编辑"",
        closeAction: ""hide"",
        plain: true,
        modal: true,
        draggable: true,
        minimizable: false,
        minHeight: 100,
        minWidth: 200,
        resizable: false,
        manager: X.window_default_group,
        x_property_target: ""_top"",
        x_property_guid: ""x50_a7bbad0c45b448749a70532a64fa2eb0"",
        x_property_left: """",
        x_property_top: """",
        x_property_position: false,
        name: ""Panel_1_添加客户$TabStrip1$Tab3$Window_项目_新增编辑"",
        maximizable: true,
        closable: true,
        onEsc: function () {
            X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab3_Window_项目_新增编辑'), function () {
                X('Panel_1_添加客户_TabStrip1_Tab3_Window_项目_新增编辑').x_hide_postback();
            });
        }
    });
    var x8 = new Ext.Panel({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab3"",
        layout: ""fit"",
        items: [x49, x50],
        tbar: x51,
        bodyStyle: ""padding:0px;"",
        border: false,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""项目列表"",
        x_type: ""tab""
    });
    var x76 = new Ext.Button({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_Button_负责人_新增"",
        text: ""添加"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/add.png"",
        handler: function () {
            X.disable('Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_Button_负责人_新增');
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab4$Toolbar2$Button_负责人_新增', '');
        }
    });
    var x77_state = {
        ""OnClientClick"": ""if(!X('Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人').getSelectionModel().hasSelection()){window.X.alert('至少选择一项！');return false;}"",
        ""ConfirmText"": ""您确定要删除选中的记录吗？"",
        ""ConfirmTarget"": ""Top""
    };
    var x77 = new Ext.Button({
        x_state: x77_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_Button_负责人_删除"",
        text: ""删除"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/delete.png"",
        handler: function () {
            if (!X('Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人').getSelectionModel().hasSelection()) {
                window.X.alert('至少选择一项！');
                return false;
            };
            X.confirm('_top', '', '您确定要删除选中的记录吗？', 'X.disable(\'Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_Button_负责人_删除\');__doPostBack(\'Panel_1_添加客户$TabStrip1$Tab4$Toolbar2$Button_负责人_删除\',\'\');');
        }
    });
    var x78 = new Ext.Toolbar.Fill({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_ToolbarFill3""
    });
    var x79 = new Ext.form.DisplayField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_Label2"",
        hidden: true,
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab4$Toolbar2$Label2"",
        value: ""<span>查询类型</span>""
    });
    var x80 = new Ext.Button({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_Button_负责人_显示全部"",
        text: ""显示全部"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/shapes_many_select.png"",
        handler: function () {
            X.disable('Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_Button_负责人_显示全部');
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab4$Toolbar2$Button_负责人_显示全部', '');
        }
    });
    var x81 = new Ext.Toolbar.Separator({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_ToolbarSeparator_负责人_查询""
    });
    var x82 = new Ext.form.DisplayField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_Label_负责人_关键字"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab4$Toolbar2$Label_负责人_关键字"",
        value: ""<span>关键字：</span>""
    });
    var x83 = new Ext.form.TriggerField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Toolbar2_TextBox_负责人_关键字"",
        width: 156,
        hideLabel: true,
        name: ""Panel_1_添加客户$TabStrip1$Tab4$Toolbar2$TextBox_负责人_关键字"",
        triggerClass: ""x-form-search-trigger"",
        onTriggerClick: function () {
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab4$Toolbar2$TextBox_负责人_关键字', '');
        },
        listeners: {
            specialkey: function (field, e) {
                if (e.getKey() == e.ENTER) {
                    x83.onTriggerClick();
                    e.stopEvent();
                }
            }
        }
    });
    var x75 = new Ext.Toolbar({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Toolbar2"",
        items: [x76, x77, x78, x79, x80, x81, x82, x83]
    });
    var x84 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_ctl00"",
        hidden: true,
        header: ""客户分配编号"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_ctl00""
    };
    var x85 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_ctl01"",
        hidden: true,
        header: ""用户编号"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_ctl01""
    };
    var x86 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_ctl02"",
        header: ""用户姓名"",
        sortable: true,
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_ctl02""
    };
    var x73_state = {
        ""RecordCount"": 1,
        ""X_Rows"": {
            ""Values"": [[""1d9fca52-0a42-41ae-8f70-9a3828cb3a0d"", ""95ac842f-c72b-4a42-b248-adfab8a9d3d6"", ""黄苏莉""]],
            ""DataKeys"": [[""1d9fca52-0a42-41ae-8f70-9a3828cb3a0d"", ""9eab88e4-20c4-4435-b0b6-2c11f657dc44"", ""95ac842f-c72b-4a42-b248-adfab8a9d3d6""]],
            ""States"": [[]]
        },
        ""X_Rows_GZ"": """",
        ""HiddenColumnIndexArray"": [2, 3]
    };
    var x73_sm = new Ext.grid.CheckboxSelectionModel({
        singleSelect: false
    });
    var x73_store = new Ext.data.ArrayStore({
        fields: [""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_ctl00"", ""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_ctl01"", ""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人_ctl02""],
        remoteSort: true,
        listeners: {
            beforeload: function (store, options) {
                if (!store.headerclickprocessed && options.params.sort) {
                    __doPostBack('Panel_1_添加客户$TabStrip1$Tab4$Grid_负责人', 'Sort$' + options.params.sort + '$' + options.params.dir);
                };
                store.headerclickprocessed = false;
                return false;
            }
        }
    });
    var x73_paging = new Ext.ux.SimplePagingToolbar({
        pageSize: 20,
        pageIndex: 0,
        recordCount: 1,
        pageCount: 1,
        x_startRowIndex: 0,
        x_endRowIndex: 0,
        displayInfo: true,
        onLoadPage: function (pageIndex) {
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab4$Grid_负责人', 'Page$' + pageIndex);
        }
    });
    var x73_cm = new Ext.grid.ColumnModel({
        columns: [new Ext.grid.RowNumberer({
            x_paging: x73_paging
        }), x73_sm, x84, x85, x86],
        defaults: {
            width: 100
        }
    });
    var x73 = new Ext.grid.GridPanel({
        x_state: x73_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Grid_负责人"",
        height: 440,
        bodyStyle: """",
        border: false,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        header: false,
        sm: x73_sm,
        cm: x73_cm,
        store: x73_store,
        enableHdMenu: false,
        stripeRows: true,
        bbar: x73_paging,
        draggable: false,
        enableColumnMove: false,
        enableDragDrop: false,
        listeners: {
            headerclick: function (cmp, columnIndex) {
                if (!cmp.getColumnModel().config[columnIndex].sortable) {
                    return false;
                }
                var args = 'Sort$' + columnIndex;
                __doPostBack('Panel_1_添加客户$TabStrip1$Tab4$Grid_负责人', args);
                cmp.getStore().headerclickprocessed = true;
            },
            viewready: function (cmp) {
                cmp.x_setSortIcon(-1, 'ASC');
                cmp.x_selectRows();
            },
            render: function (cmp) {
                cmp.x_loadData();
                cmp.x_updateColumnsHiddenStatus();
            }
        }
    });
    X.util.appendFormNode('<div class=""x-window-wrapper"" id=""Panel_1_添加客户_TabStrip1_Tab4_Window_负责人_新增编辑_wrapper""></div>');
    X.util.setHiddenFieldValue('Panel_1_添加客户_TabStrip1_Tab4_Window_负责人_新增编辑_Hidden', 'true');
    var x74 = new Ext.Window({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4_Window_负责人_新增编辑"",
        listeners: {
            maximize: function (win) {
                X.wnd.fixMaximize(win);
            },
            render: function (win) {
                win.tools.close.addListener('click', function () {
                    X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab4_Window_负责人_新增编辑'), function () {
                        X('Panel_1_添加客户_TabStrip1_Tab4_Window_负责人_新增编辑').x_hide_postback();
                    });
                });
            }
        },
        width: 900,
        height: 460,
        bodyStyle: """",
        border: true,
        x_iframe: true,
        x_iframe_url: ""about:blank"",
        x_iframe_name: ""x74_e0a2d162d56e4a4eab8ff9c99ab4cf33"",
        x_iframe_loaded: true,
        html: ""<iframe src=\""about:blank\"" name=\""x74_e0a2d162d56e4a4eab8ff9c99ab4cf33\"" frameborder=\""0\"" style=\""height:100%;width:100%;overflow:auto;\""></iframe>"",
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""添加负责人"",
        closeAction: ""hide"",
        plain: true,
        modal: true,
        draggable: true,
        minimizable: false,
        minHeight: 100,
        minWidth: 200,
        resizable: false,
        manager: X.window_default_group,
        x_property_target: ""_top"",
        x_property_guid: ""x74_e0a2d162d56e4a4eab8ff9c99ab4cf33"",
        x_property_left: """",
        x_property_top: """",
        x_property_position: false,
        name: ""Panel_1_添加客户$TabStrip1$Tab4$Window_负责人_新增编辑"",
        maximizable: true,
        closable: true,
        onEsc: function () {
            X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab4_Window_负责人_新增编辑'), function () {
                X('Panel_1_添加客户_TabStrip1_Tab4_Window_负责人_新增编辑').x_hide_postback();
            });
        }
    });
    var x9 = new Ext.Panel({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab4"",
        layout: ""fit"",
        items: [x73, x74],
        tbar: x75,
        bodyStyle: ""padding:0px;"",
        border: false,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""跟踪人列表"",
        x_type: ""tab""
    });
    var x91 = new Ext.Button({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_Button_跟踪记录_新增"",
        text: ""添加"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/add.png"",
        handler: function () {
            X.disable('Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_Button_跟踪记录_新增');
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab5$Toolbar3$Button_跟踪记录_新增', '');
        }
    });
    var x92_state = {
        ""OnClientClick"": ""if(!X('Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录').getSelectionModel().hasSelection()){window.X.alert('至少选择一项！');return false;}"",
        ""ConfirmText"": ""您确定要删除选中的记录吗？"",
        ""ConfirmTarget"": ""Top""
    };
    var x92 = new Ext.Button({
        x_state: x92_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_Button_跟踪记录_删除"",
        text: ""删除"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/delete.png"",
        handler: function () {
            if (!X('Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录').getSelectionModel().hasSelection()) {
                window.X.alert('至少选择一项！');
                return false;
            };
            X.confirm('_top', '', '您确定要删除选中的记录吗？', 'X.disable(\'Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_Button_跟踪记录_删除\');__doPostBack(\'Panel_1_添加客户$TabStrip1$Tab5$Toolbar3$Button_跟踪记录_删除\',\'\');');
        }
    });
    var x93 = new Ext.Toolbar.Fill({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_ToolbarFill4""
    });
    var x94 = new Ext.form.Hidden({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_Hidden_跟踪记录排序字段"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab5$Toolbar3$Hidden_跟踪记录排序字段"",
        value: ""跟踪记录创建时间""
    });
    var x95 = new Ext.form.DateField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_DatePicker1"",
        width: 100,
        fieldLabel: ""跟踪日期"",
        name: ""Panel_1_添加客户$TabStrip1$Tab5$Toolbar3$DatePicker1"",
        emptyText: ""跟踪开始日期"",
        format: ""Y-m-d"",
        altFormats: ""Y-m-d|Y-n-j|Ymd|Ynj|y-m-d|y-n-j|ymd|ynj""
    });
    var x96 = new Ext.form.DateField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_DatePicker2"",
        width: 100,
        hideLabel: true,
        name: ""Panel_1_添加客户$TabStrip1$Tab5$Toolbar3$DatePicker2"",
        emptyText: ""跟踪结束日期"",
        format: ""Y-m-d"",
        altFormats: ""Y-m-d|Y-n-j|Ymd|Ynj|y-m-d|y-n-j|ymd|ynj""
    });
    var x97 = new Ext.Button({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_Button_跟踪记录_显示全部"",
        text: ""显示全部"",
        cls: "" x-btn-text-icon"",
        icon: ""/icon/shapes_many_select.png"",
        handler: function () {
            X.disable('Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_Button_跟踪记录_显示全部');
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab5$Toolbar3$Button_跟踪记录_显示全部', '');
        }
    });
    var x98 = new Ext.Toolbar.Separator({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_ToolbarSeparator_跟踪记录_查询""
    });
    var x99 = new Ext.form.DisplayField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_Label_跟踪记录_关键字"",
        anchor: ""-20px"",
        name: ""Panel_1_添加客户$TabStrip1$Tab5$Toolbar3$Label_跟踪记录_关键字"",
        value: ""<span>关键字：</span>""
    });
    var x100 = new Ext.form.TriggerField({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3_TextBox_跟踪记录_关键字"",
        width: 156,
        hideLabel: true,
        name: ""Panel_1_添加客户$TabStrip1$Tab5$Toolbar3$TextBox_跟踪记录_关键字"",
        triggerClass: ""x-form-search-trigger"",
        onTriggerClick: function () {
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab5$Toolbar3$TextBox_跟踪记录_关键字', '');
        },
        listeners: {
            specialkey: function (field, e) {
                if (e.getKey() == e.ENTER) {
                    x100.onTriggerClick();
                    e.stopEvent();
                }
            }
        }
    });
    var x90 = new Ext.Toolbar({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Toolbar3"",
        items: [x91, x92, x93, x94, x95, x96, x97, x98, x99, x100]
    });
    var x101 = new Ext.ux.grid.RowExpander({
        tpl: new Ext.Template(""{expander}"")
    });
    var x102 = {
        x_state: {},
        id: ""WindowField_继续跟踪"",
        header: ""&nbsp;"",
        dataIndex: ""WindowField_继续跟踪"",
        width: 80
    };
    var x103 = {
        x_state: {},
        id: ""WindowField_编辑"",
        header: ""&nbsp;"",
        dataIndex: ""WindowField_编辑"",
        width: 80
    };
    var x104 = {
        x_state: {},
        id: ""WindowField_评论"",
        header: ""&nbsp;"",
        dataIndex: ""WindowField_评论"",
        width: 80
    };
    var x105 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl04"",
        header: ""&nbsp;"",
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl04""
    };
    var x106 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl05"",
        header: ""&nbsp;"",
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl05"",
        width: 200
    };
    var x107 = {
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl06"",
        header: ""&nbsp;"",
        dataIndex: ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl06"",
        width: 1
    };
    var x87_state = {
        ""RecordCount"": 1,
        ""X_Rows"": {
            ""Values"": [[""#@TPL@#ctl07"", ""<a ext:qtip=\""继续跟踪\""  href=\""javascript:;\"" onclick=\""javascript:X(&#39;Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_新增编辑&#39;).x_show(&#39;/CRM/TrackRecordNewEdit.aspx?id=8406f706-46ad-427d-8e79-d7afb766d173&amp;Type=Copy&#39;,&#39;&#39;);\"">继续跟踪</a>"", ""<a ext:qtip=\""编辑\""  href=\""javascript:;\"" onclick=\""javascript:X(&#39;Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_新增编辑&#39;).x_show(&#39;/CRM/TrackRecordNewEdit.aspx?id=8406f706-46ad-427d-8e79-d7afb766d173&#39;,&#39;&#39;);\"">编辑</a>"", ""<a ext:qtip=\""评论\""  href=\""javascript:;\"" onclick=\""javascript:X(&#39;Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_编辑不刷新&#39;).x_show(&#39;/CRM/Comment.aspx?id=8406f706-46ad-427d-8e79-d7afb766d173&amp;type=TrackRecord&#39;,&#39;&#39;);\"">评论</a>"", ""#@TPL@#ctl08"", ""#@TPL@#ctl09"", ""#@TPL@#ctl10""]],
            ""DataKeys"": [[""8406f706-46ad-427d-8e79-d7afb766d173""]],
            ""States"": [[]]
        },
        ""X_Rows_GZ"": """"
    };
    var x87_sm = new Ext.grid.CheckboxSelectionModel({
        singleSelect: false
    });
    var x87_store = new Ext.data.ArrayStore({
        fields: [""expander"", ""WindowField_继续跟踪"", ""WindowField_编辑"", ""WindowField_评论"", ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl04"", ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl05"", ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl06""],
        remoteSort: true,
        listeners: {
            beforeload: function (store, options) {
                if (!store.headerclickprocessed && options.params.sort) {
                    __doPostBack('Panel_1_添加客户$TabStrip1$Tab5$Grid_跟踪记录', 'Sort$' + options.params.sort + '$' + options.params.dir);
                };
                store.headerclickprocessed = false;
                return false;
            }
        }
    });
    var x87_paging = new Ext.ux.SimplePagingToolbar({
        pageSize: 10,
        pageIndex: 0,
        recordCount: 1,
        pageCount: 1,
        x_databasePaging: true,
        displayInfo: true,
        onLoadPage: function (pageIndex) {
            __doPostBack('Panel_1_添加客户$TabStrip1$Tab5$Grid_跟踪记录', 'Page$' + pageIndex);
        }
    });
    var x87_cm = new Ext.grid.ColumnModel({
        columns: [x87_sm, x101, x102, x103, x104, x105, x106, x107],
        defaults: {
            width: 100
        }
    });
    var x87 = new Ext.grid.GridPanel({
        x_state: x87_state,
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录"",
        bodyStyle: """",
        border: true,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        header: false,
        sm: x87_sm,
        plugins: [x101],
        cm: x87_cm,
        store: x87_store,
        autoExpandColumn: ""Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl04"",
        enableHdMenu: false,
        stripeRows: true,
        hideHeaders: true,
        bbar: x87_paging,
        draggable: false,
        enableColumnMove: false,
        enableDragDrop: false,
        cls: ""x-grid-selectable"",
        listeners: {
            viewready: function (cmp) {
                cmp.x_selectRows();
                cmp.x_enableTextSelection();
            },
            render: function (cmp) {
                cmp.x_loadData();
            }
        }
    });
    X.util.appendFormNode('<div class=""x-window-wrapper"" id=""Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_新增编辑_wrapper""></div>');
    X.util.setHiddenFieldValue('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_新增编辑_Hidden', 'true');
    var x88 = new Ext.Window({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_新增编辑"",
        listeners: {
            maximize: function (win) {
                X.wnd.fixMaximize(win);
            },
            render: function (win) {
                win.tools.close.addListener('click', function () {
                    X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_新增编辑'), function () {
                        X('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_新增编辑').x_hide_postback();
                    });
                });
            }
        },
        width: 900,
        height: 460,
        bodyStyle: """",
        border: true,
        x_iframe: true,
        x_iframe_url: ""about:blank"",
        x_iframe_name: ""x88_f7eda2bdac0f4ec09d82f6d1a5f9783c"",
        x_iframe_loaded: true,
        html: ""<iframe src=\""about:blank\"" name=\""x88_f7eda2bdac0f4ec09d82f6d1a5f9783c\"" frameborder=\""0\"" style=\""height:100%;width:100%;overflow:auto;\""></iframe>"",
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""添加跟踪记录"",
        closeAction: ""hide"",
        plain: true,
        modal: true,
        draggable: true,
        minimizable: false,
        minHeight: 100,
        minWidth: 200,
        resizable: false,
        manager: X.window_default_group,
        x_property_target: ""_top"",
        x_property_guid: ""x88_f7eda2bdac0f4ec09d82f6d1a5f9783c"",
        x_property_left: """",
        x_property_top: """",
        x_property_position: false,
        name: ""Panel_1_添加客户$TabStrip1$Tab5$Window_跟踪记录_新增编辑"",
        maximizable: true,
        closable: true,
        onEsc: function () {
            X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_新增编辑'), function () {
                X('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_新增编辑').x_hide_postback();
            });
        }
    });
    X.util.appendFormNode('<div class=""x-window-wrapper"" id=""Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_编辑不刷新_wrapper""></div>');
    X.util.setHiddenFieldValue('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_编辑不刷新_Hidden', 'true');
    var x89 = new Ext.Window({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_编辑不刷新"",
        listeners: {
            maximize: function (win) {
                X.wnd.fixMaximize(win);
            },
            render: function (win) {
                win.tools.close.addListener('click', function () {
                    X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_编辑不刷新'), function () {
                        X('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_编辑不刷新').x_hide_postback();
                    });
                });
            }
        },
        width: 960,
        height: 530,
        bodyStyle: """",
        border: true,
        x_iframe: true,
        x_iframe_url: ""about:blank"",
        x_iframe_name: ""x89_22a73e304f7145a9958f3ffee4c17988"",
        x_iframe_loaded: true,
        html: ""<iframe src=\""about:blank\"" name=\""x89_22a73e304f7145a9958f3ffee4c17988\"" frameborder=\""0\"" style=\""height:100%;width:100%;overflow:auto;\""></iframe>"",
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""编辑"",
        closeAction: ""hide"",
        plain: true,
        modal: true,
        draggable: true,
        minimizable: false,
        minHeight: 100,
        minWidth: 200,
        resizable: false,
        manager: X.window_default_group,
        x_property_target: ""_top"",
        x_property_guid: ""x89_22a73e304f7145a9958f3ffee4c17988"",
        x_property_left: """",
        x_property_top: """",
        x_property_position: false,
        name: ""Panel_1_添加客户$TabStrip1$Tab5$Window_跟踪记录_编辑不刷新"",
        maximizable: true,
        closable: true,
        onEsc: function () {
            X.wnd.extWindowIFrameFormModifiedConfirm(X('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_编辑不刷新'), function () {
                X('Panel_1_添加客户_TabStrip1_Tab5_Window_跟踪记录_编辑不刷新').x_hide_postback();
            });
        }
    });
    var x10 = new Ext.Panel({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1_Tab5"",
        layout: ""fit"",
        items: [x87, x88, x89],
        tbar: x90,
        bodyStyle: ""padding:0px;"",
        border: false,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        title: ""跟踪记录列表"",
        x_type: ""tab""
    });
    var x2 = new Ext.TabPanel({
        x_state: {},
        id: ""Panel_1_添加客户_TabStrip1"",
        width: 750,
        height: 600,
        tabPosition: ""top"",
        bodyStyle: """",
        border: true,
        animCollapse: false,
        items: [x6, x7, x8, x9, x10],
        deferredRender: false,
        layoutOnTabChange: true,
        enableTabScroll: true,
        activeTab: 0,
        listeners: {
            tabchange: function (tabPanel, tab) {
                X.wnd.updateIFrameNode(tab);
                if (!tab.x_dynamic_added_tab) {
                    __doPostBack('Panel_1_添加客户$TabStrip1', '');
                }
            }
        }
    });
    var x0 = new Ext.Panel({
        x_state: {},
        id: ""Panel_1_添加客户"",
        layout: ""fit"",
        items: [x2],
        tbar: x3,
        bodyStyle: """",
        border: false,
        animCollapse: true,
        collapsible: false,
        collapsed: false,
        header: false
    });
    X.util.removePageLoading(false);
    var x1 = new Ext.ux.FormViewport({
        x_state: {},
        id: ""PageManager_添加客户"",
        renderTo: ""PageManager_添加客户_wrapper"",
        layout: ""fit"",
        border: false,
        items: x0
    });
    X.ready();
});//]]>
</script>
</form>
    <script type=""text/javascript"">
        var gridClientID = 'Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录';

        function expandAllRows() {
            var grid = X(gridClientID);
            for (var i = 0, count = grid.store.getCount() ; i < count; i++) {
                grid.plugins[0].expandRow(i);
            }
        }

        // 页面第一个加载完毕后执行的函数
        function onReady() {
            var grid = X(gridClientID);
            grid.addListener('viewready', function () {
                expandAllRows();
            });
        }

        // 页面AJAX回发后执行的函数
        function onAjaxReady() {
            expandAllRows();
        }

    </script>
</body>
</html>
";
            #endregion

            /*var customerInfoList = new List<CustomerInfoModel>();
              CustomerInfoModel customerInfo = new CustomerInfoModel(testStr);
              customerInfoList.Add(customerInfo);

              var contactList = new List<ContactModel>();
              ContactCollection contacts = new ContactCollection(customerInfo.x18_state, testStr);
              contactList.AddRange(contacts);

              var projectList = new List<ProjectModel>();
              ProjectCollection projects = new ProjectCollection(testStr);
              projectList.AddRange(projects);

              var tracerList = new List<TracerModel>();
              TracerModel tracers = new TracerModel(customerInfo.x18_state, testStr);
              tracerList.Add(tracers);

              var traceRecordList = new List<TraceRecordModel>();
              TraceRecordCollection traceRecords = new TraceRecordCollection(testStr);
              traceRecordList.AddRange(traceRecords);

              ExcelHelper helper = new ExcelHelper();
              helper.Add<CustomerInfoModel>("客户信息", customerInfoList);
              helper.Add<ContactModel>("联系人列表", contactList);
              helper.Add<ProjectModel>("项目列表", projectList);
              helper.Add<TracerModel>("跟踪人列表", tracerList);
              helper.Add<TraceRecordModel>("跟踪记录列表", traceRecordList);

              helper.ReportClient("/test.xls");
              Console.WriteLine(traceRecords.Count);
              Console.ReadLine();
              return;*/

            try
            {
                #region 第一页数据
                /*var customerInfoList = new List<CustomerInfoModel>();
                var contactList = new List<ContactModel>();
                var projectList = new List<ProjectModel>();
                var tracerList = new List<TracerModel>();
                var traceRecordList = new List<TraceRecordModel>();

                // 客户分页列表 第一页数据 "CustomersList.aspx"
                var header = new Dictionary<string, string>();
                header.Add("Cookie", "ASP.NET_SessionId=el3wucxrnouxxv0n3qjv10a5;");

                // 分页列表数据
                var page0 = @"__EVENTTARGET=RegionPanel_Channel%24Region2%24Toolbar_%E5%B7%A5%E5%85%B7%E6%A0%8F_Content%24button_%E9%AB%98%E7%BA%A7%E6%9F%A5%E8%AF%A2&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwULLTEwODk4MDgwOTIPZBYCAgMPZBYCAgMPZBYCAgEPZBYCZg9kFgZmDxYCHgdWaXNpYmxlaGQCAQ8WAh8AaGQCCQ8WAh8AaGQYAgUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFhwFG1JlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMQU4UmVnaW9uUGFuZWxfQ2hhbm5lbCRSZWdpb24xJFRvb2xiYXIxJEhpZGRlbl%2FnlKjmiLfnvJblj7cFMlJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMSRUb29sYmFyMSRCdXR0b25f56Gu6K6kBThSZWdpb25QYW5lbF9DaGFubmVsJFJlZ2lvbjEkVG9vbGJhcjEkQnV0dG9uX%2BWuouaIt%2BmAieaLqQU5UmVnaW9uUGFuZWxfQ2hhbm5lbCRSZWdpb24xJFRvb2xiYXIxJEJ1dHRvbl%2FlrqLmiLfpgInmi6kxBT9SZWdpb25QYW5lbF9DaGFubmVsJFJlZ2lvbjEkVG9vbGJhcjEkQnV0dG9uX%2BWFs%2BmXrV%2Fmt7vliqDlrqLmiLcFLFJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMSRUb29sYmFyMSRidXR0b24xBRtSZWdpb25QYW5lbF9DaGFubmVsJFJlZ2lvbjIFSVJlZ2lvblBhbmVsX0NoYW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VsNSRUZXh0Qm94X%2BS4iue6p%2BWuouaItwUpUmVnaW9uUGFuZWxfQ2hhbm5lbCRSZWdpb24yJFBhbmVsMyRQYW5lbDIFQ1JlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRQYW5lbDMkUGFuZWwyJERyb3BEb3duTGlzdF%2FlrqLmiLfnrYnnuqcFPVJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRQYW5lbDMkUGFuZWwyJEhpZGRlbl%2Fnu4Tnu4fnvJblj7cFOlJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRQYW5lbDMkUGFuZWwyJHRieF%2Fnu4Tnu4fnvJblj7cFJ1JlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRHcmlkX%2BWuouaItwUvUmVnaW9uUGFuZWxfQ2hhbm5lbCRSZWdpb24yJFdpbmRvd1%2FmlrDlop7nvJbovpEFL1JlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRXaW5kb3df6YOo6Zeo6YCJ5oupBSdSZWdpb25QYW5lbF9DaGFubmVsJFJlZ2lvbjIkR3JpZF%2FlrqLmiLcPD2RlZOhq5far4gPALl7GnPfJYpP7HJdJRfyciNzUa6maSGJK&RegionPanel_Channel%24Region1%24Toolbar1%24Hidden_%E7%94%A8%E6%88%B7%E7%BC%96%E5%8F%B7=&RegionPanel_Channel%24Region2%24Toolbar_%E5%B7%A5%E5%85%B7%E6%A0%8F_Content%24Hidden_%E6%8E%92%E5%BA%8F%E5%AD%97%E6%AE%B5=%E5%AE%A2%E6%88%B7%E5%90%8D%E7%A7%B0&RegionPanel_Channel%24Region2%24Panel3%24Panel1%24DropDownList_%E8%A1%8C%E4%B8%9A=-1&RegionPanel_Channel%24Region2%24Panel3%24Panel1%24DropDownList_%E4%B8%9A%E5%8A%A1%E7%B1%BB%E5%88%AB=-1&RegionPanel_Channel%24Region2%24Panel3%24Panel1%24TextBox_%E5%AE%A2%E6%88%B7%E5%90%8D%E7%A7%B0=&RegionPanel_Channel%24Region2%24Panel3%24Panel5%24DropDownList_%E5%AE%A2%E6%88%B7%E7%BA%A7%E5%88%AB=-1&RegionPanel_Channel%24Region2%24Panel3%24Panel5%24TextBox_%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92=&RegionPanel_Channel%24Region2%24Panel3%24Panel5%24TextBox_%E4%B8%8A%E7%BA%A7%E5%AE%A2%E6%88%B7=&RegionPanel_Channel%24Region2%24Panel3%24Panel2%24DropDownList_%E5%AE%A2%E6%88%B7%E7%AD%89%E7%BA%A7=-1&RegionPanel_Channel%24Region2%24Panel3%24Panel2%24Hidden_%E7%BB%84%E7%BB%87%E7%BC%96%E5%8F%B7=&RegionPanel_Channel%24Region2%24Panel3%24Panel2%24tbx_%E7%BB%84%E7%BB%87%E7%BC%96%E5%8F%B7=%E9%80%89%E6%8B%A9%E7%BB%84%E7%BB%87&X_CHANGED=false&RegionPanel_Channel_Region2_Window_%E6%96%B0%E5%A2%9E%E7%BC%96%E8%BE%91_Hidden=true&RegionPanel_Channel_Region2_Window_%E9%83%A8%E9%97%A8%E9%80%89%E6%8B%A9_Hidden=true&X_TARGET=RegionPanel_Channel_Region2_Toolbar_%E5%B7%A5%E5%85%B7%E6%A0%8F_Content_button_%E9%AB%98%E7%BA%A7%E6%9F%A5%E8%AF%A2&RegionPanel_Channel_Region1_Collapsed=false&RegionPanel_Channel_Region2_Panel3_Panel1_Collapsed=false&RegionPanel_Channel_Region2_Panel3_Panel5_Collapsed=false&RegionPanel_Channel_Region2_Panel3_Panel2_Collapsed=false&RegionPanel_Channel_Region2_Panel3_Collapsed=false&RegionPanel_Channel_Region2_Grid_%E5%AE%A2%E6%88%B7_Collapsed=false&RegionPanel_Channel_Region2_Grid_%E5%AE%A2%E6%88%B7_SelectedRowIndexArray=&RegionPanel_Channel_Region2_Grid_%E5%AE%A2%E6%88%B7_HiddenColumnIndexArray=4&RegionPanel_Channel_Region2_Window_%E6%96%B0%E5%A2%9E%E7%BC%96%E8%BE%91_Collapsed=false&RegionPanel_Channel_Region2_Window_%E9%83%A8%E9%97%A8%E9%80%89%E6%8B%A9_Collapsed=false&RegionPanel_Channel_Region2_Collapsed=false&RegionPanel_Channel_Collapsed=false&X_STATE=eyJSZWdpb25QYW5lbF9DaGFubmVsX1JlZ2lvbjFfVG9vbGJhcjFfQnV0dG9uX%2BWFs%2BmXrV%2Fmt7vliqDlrqLmiLciOnsiT25DbGllbnRDbGljayI6IihmdW5jdGlvbigpe3ZhciBhdz1YLnduZC5nZXRBY3RpdmVXaW5kb3coKTtpZihhdyl7YXdbMF0ueF9oaWRlX3Bvc3RiYWNrKCk7fX0pKCk7In0sIlJlZ2lvblBhbmVsX0NoYW5uZWxfUmVnaW9uMl9QYW5lbDNfUGFuZWwxX0Ryb3BEb3duTGlzdF%2FooYzkuJoiOnsiRGF0YVRleHRGaWVsZCI6IuihjOS4muWQjeensCIsIkRhdGFWYWx1ZUZpZWxkIjoi6KGM5Lia57yW5Y%2B3IiwiWF9JdGVtcyI6W1siLTEiLCLlhajpg6giLDFdLFsiMDE2ODBiMmYtMjBjYS00MjJmLTgxMmItMzhhMWEyZWRjZjAxIiwi5rC05YipIiwxXSxbIjY4Yjc5ZThhLWNlZDEtNDlmNS05NTE3LWZiOGYyN2FjYzBhYyIsIuawtOWKoSIsMV0sWyI5ZDNhNTQ3Zi05ZmQ0LTQ3OWUtODQxMi1iMzYxMTA0ZjJhZTIiLCLlupTmgKUiLDFdLFsiNGYwNjE1MWItMGIwMy00YzQ0LWIxMjktODc1NmVlN2Q3MzU0Iiwi6Ieq54S26LWE5rqQIiwxXSxbImY0NDk3ZjU3LTU5M2MtNDRhOC04OGZkLTFmMTNjYWJhMzM4OCIsIueUn%2BaAgeeOr%2BWigyIsMV0sWyJjNmYyM2YxMi1kNjliLTQ4MTgtOTFjYy00YWZhMTllMjAxOTEiLCLlhpzkuJrlhpzmnZEiLDFdLFsiMDMzODE2NTItMWQ4NS00OGFlLTk1YjQtNjZ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pZGRlbl%2Fnu4Tnu4fnvJblj7cnLCdSZWdpb25QYW5lbF9DaGFubmVsX1JlZ2lvbjJfUGFuZWwzX1BhbmVsMl90Ynhf57uE57uH57yW5Y%2B3J107WCgnUmVnaW9uUGFuZWxfQ2hhbm5lbF9SZWdpb24yX1dpbmRvd1%2Fpg6jpl6jpgInmi6knKS54X3Nob3coJy9DUk0vRGVwYXJ0bWVudExpc3QuYXNweCcsJ%2BmDqOmXqOmAieaLqScpOyJ9LCJSZWdpb25QYW5lbF9DaGFubmVsX1JlZ2lvbjJfR3JpZF%2FlrqLmiLciOnsiU29ydENvbHVtbkluZGV4IjowLCJIaWRkZW5Db2x1bW5JbmRleEFycmF5IjpbNF0sIlhfUm93cyI6eyJWYWx1ZXMiOltdLCJEYXRhS2V5cyI6W10sIlN0YXRlcyI6W119fX0%3D&X_AJAX=true";
                var result0 = _client.Post(page0, header, "CustomersList.aspx");

                var subResult = result0.Substring("\"Values\":[[", "]],");
                var guids = subResult.Matches("\"(.{8}-.{4}-.{4}-.{4}-.{12})\"");
                foreach (var g in guids)
                {
                    var guid = g.Substring(1, g.Length - 2);
                    Console.WriteLine(guid);
                    // 获取详细数据
                    var detailResult = _client.Get(new Dictionary<string, string> { { "id", guid } }, "CustomersNewEdit.aspx");
                    CustomerInfoModel customerInfo = new CustomerInfoModel(detailResult);
                    customerInfoList.Add(customerInfo);

                    ContactCollection contacts = new ContactCollection(customerInfo.x18_state, detailResult);
                    contactList.AddRange(contacts);

                    ProjectCollection projects = new ProjectCollection(detailResult);
                    projectList.AddRange(projects);

                    TracerModel tracers = new TracerModel(customerInfo.x18_state, detailResult);
                    tracerList.Add(tracers);

                    TraceRecordCollection traceRecords = new TraceRecordCollection(detailResult);
                    traceRecordList.AddRange(traceRecords);
                }

                ExcelHelper helper = new ExcelHelper();
                helper.Add<CustomerInfoModel>("客户信息", customerInfoList);
                helper.Add<ContactModel>("联系人列表", contactList);
                helper.Add<ProjectModel>("项目列表", projectList);
                helper.Add<TracerModel>("跟踪人列表", tracerList);
                helper.Add<TraceRecordModel>("跟踪记录列表", traceRecordList);

                helper.ReportClient("/渠道数据0.xls");

                Console.ReadLine();
                return;*/
                #endregion


                #region 数据解析

                /*var baseDir = @"G:\11.crm数据\Source";
                var dirs = FileHelper.GetDirectories(baseDir);
                foreach (var d in dirs)
                {
                    Console.WriteLine(">>");
                    Console.WriteLine(d);

                    var customerInfoList = new List<CustomerInfoModel>();
                    var contactList = new List<ContactModel>();
                    var projectList = new List<ProjectModel>();
                    var tracerList = new List<TracerModel>();
                    var traceRecordList = new List<TraceRecordModel>();

                    var files = FileHelper.GetFileNames(Path.Combine(baseDir, d));
                    foreach (var f in files)
                    {
                        var txt = FileHelper.FileToString(f);

                        CustomerInfoModel customerInfo = new CustomerInfoModel(txt);
                        customerInfoList.Add(customerInfo);

                        ContactCollection contacts = new ContactCollection(customerInfo.x18_state, txt);
                        contactList.AddRange(contacts);

                        ProjectCollection projects = new ProjectCollection(txt);
                        projectList.AddRange(projects);

                        TracerModel tracers = new TracerModel(customerInfo.x18_state, txt);
                        tracerList.Add(tracers);

                        TraceRecordCollection traceRecords = new TraceRecordCollection(txt);
                        traceRecordList.AddRange(traceRecords);

                        Console.WriteLine(f);
                    }

                    ExcelHelper helper = new ExcelHelper();
                    helper.Add<CustomerInfoModel>("客户信息", customerInfoList);
                    helper.Add<ContactModel>("联系人列表", contactList);
                    helper.Add<ProjectModel>("项目列表", projectList);
                    helper.Add<TracerModel>("跟踪人列表", tracerList);
                    helper.Add<TraceRecordModel>("跟踪记录列表", traceRecordList);

                    helper.ReportClient($"{d}渠道数据.xls");
                }

                Console.ReadLine();
                return;*/

                #endregion


                #region  数据爬取

                // 客户分页列表 第一页数据 "CustomersList.aspx"
                /*var header = new Dictionary<string, string>();
                header.Add("Cookie", "ASP.NET_SessionId=el3wucxrnouxxv0n3qjv10a5;");

                var basePath = @"G:\11.crm数据\Source";
                var subPath = "401-500";
                for (var i = 478; i < 520; i++)
                {
                    if (i % 100 == 0)
                    {
                        subPath = $"{i + 1}-{i + 100}";
                        Console.WriteLine(">>");
                        Console.WriteLine(subPath);
                    }

                    // 分页列表数据
                    var pagex =
                        $"__EVENTTARGET=RegionPanel_Channel%24Region2%24Grid_%E5%AE%A2%E6%88%B7&__EVENTARGUMENT=Page%24{i}&__VIEWSTATE=%2FwEPDwULLTEwODk4MDgwOTIPZBYCAgMPZBYCAgMPZBYCAgEPZBYCZg9kFgZmDxYCHgdWaXNpYmxlaGQCAQ8WAh8AaGQCCQ8WAh8AaGQYAgUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFhwFG1JlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMQU4UmVnaW9uUGFuZWxfQ2hhbm5lbCRSZWdpb24xJFRvb2xiYXIxJEhpZGRlbl%2FnlKjmiLfnvJblj7cFMlJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMSRUb29sYmFyMSRCdXR0b25f56Gu6K6kBThSZWdpb25QYW5lbF9DaGFubmVsJFJlZ2lvbjEkVG9vbGJhcjEkQnV0dG9uX%2BWuouaIt%2BmAieaLqQU5UmVnaW9uUGFuZWxfQ2hhbm5lbCRSZWdpb24xJFRvb2xiYXIxJEJ1dHRvbl%2FlrqLmiLfpgInmi6kxBT9SZWdpb25QYW5lbF9DaGFubmVsJFJlZ2lvbjEkVG9vbGJhcjEkQnV0dG9uX%2BWFs%2BmXrV%2Fmt7vliqDlrqLmiLcFLFJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMSRUb29sYmFyMSRidXR0b24xBRtSZWdpb25QYW5lbF9DaGFubmVsJFJlZ2lvbjIFSVJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRUb29sYmFyX%2BW3peWFt%2Bagj19Db250ZW50JEhpZGRlbl%2FmjpLluo%2FlrZfmrrUFSVJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRUb29sYmFyX%2BW3peWFt%2Bagj19Db250ZW50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b3BEb3duTGlzdF%2FlrqLmiLfnrYnnuqcFPVJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRQYW5lbDMkUGFuZWwyJEhpZGRlbl%2Fnu4Tnu4fnvJblj7cFOlJlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRQYW5lbDMkUGFuZWwyJHRieF%2Fnu4Tnu4fnvJblj7cFJ1JlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRHcmlkX%2BWuouaItwUvUmVnaW9uUGFuZWxfQ2hhbm5lbCRSZWdpb24yJFdpbmRvd1%2FmlrDlop7nvJbovpEFL1JlZ2lvblBhbmVsX0NoYW5uZWwkUmVnaW9uMiRXaW5kb3df6YOo6Zeo6YCJ5oupBSdSZWdpb25QYW5lbF9DaGFubmVsJFJlZ2lvbjIkR3JpZF%2FlrqLmiLcPD2RlZOhq5far4gPALl7GnPfJYpP7HJdJRfyciNzUa6maSGJK&RegionPanel_Channel%24Region1%24Toolbar1%24Hidden_%E7%94%A8%E6%88%B7%E7%BC%96%E5%8F%B7=&RegionPanel_Channel%24Region2%24Toolbar_%E5%B7%A5%E5%85%B7%E6%A0%8F_Content%24Hidden_%E6%8E%92%E5%BA%8F%E5%AD%97%E6%AE%B5=%E5%AE%A2%E6%88%B7%E5%90%8D%E7%A7%B0&RegionPanel_Channel%24Region2%24Panel3%24Panel1%24DropDownList_%E8%A1%8C%E4%B8%9A=-1&RegionPanel_Channel%24Region2%24Panel3%24Panel1%24DropDownList_%E4%B8%9A%E5%8A%A1%E7%B1%BB%E5%88%AB=-1&RegionPanel_Channel%24Region2%24Panel3%24Panel1%24TextBox_%E5%AE%A2%E6%88%B7%E5%90%8D%E7%A7%B0=&RegionPanel_Channel%24Region2%24Panel3%24Panel5%24DropDownList_%E5%AE%A2%E6%88%B7%E7%BA%A7%E5%88%AB=-1&RegionPanel_Channel%24Region2%24Panel3%24Panel5%24TextBox_%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92=&RegionPanel_Channel%24Region2%24Panel3%24Panel5%24TextBox_%E4%B8%8A%E7%BA%A7%E5%AE%A2%E6%88%B7=&RegionPanel_Channel%24Region2%24Panel3%24Panel2%24DropDownList_%E5%AE%A2%E6%88%B7%E7%AD%89%E7%BA%A7=-1&RegionPanel_Channel%24Region2%24Panel3%24Panel2%24Hidden_%E7%BB%84%E7%BB%87%E7%BC%96%E5%8F%B7=&RegionPanel_Channel%24Region2%24Panel3%24Panel2%24tbx_%E7%BB%84%E7%BB%87%E7%BC%96%E5%8F%B7=%E9%80%89%E6%8B%A9%E7%BB%84%E7%BB%87&X_CHANGED=false&RegionPanel_Channel_Region2_Window_%E6%96%B0%E5%A2%9E%E7%BC%96%E8%BE%91_Hidden=true&RegionPanel_Channel_Region2_Window_%E9%83%A8%E9%97%A8%E9%80%89%E6%8B%A9_Hidden=true&X_TARGET=&RegionPanel_Channel_Region1_Collapsed=false&RegionPanel_Channel_Region2_Panel3_Panel1_Collapsed=false&RegionPanel_Channel_Region2_Panel3_Panel5_Collapsed=false&RegionPanel_Channel_Region2_Panel3_Panel2_Collapsed=false&RegionPanel_Channel_Region2_Panel3_Collapsed=false&RegionPanel_Channel_Region2_Grid_%E5%AE%A2%E6%88%B7_Collapsed=false&RegionPanel_Channel_Region2_Grid_%E5%AE%A2%E6%88%B7_SelectedRowIndexArray=&RegionPanel_Channel_Region2_Grid_%E5%AE%A2%E6%88%B7_HiddenColumnIndexArray=4&RegionPanel_Channel_Region2_Window_%E6%96%B0%E5%A2%9E%E7%BC%96%E8%BE%91_Collapsed=false&RegionPanel_Channel_Region2_Window_%E9%83%A8%E9%97%A8%E9%80%89%E6%8B%A9_Collapsed=false&RegionPanel_Channel_Region2_Collapsed=false&RegionPanel_Channel_Collapsed=false&X_STATE=eyJSZWdpb25QYW5lbF9DaGFubmVsX1JlZ2lvbjFfVG9vbGJhcjFfQnV0dG9uX%2BWFs%2BmXrV%2Fmt7vliqDlrqLmiLciOnsiT25DbGllbnRDbGljayI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RVGxMWURFTEhrM3NaRFRBQkJZUWdvRGhnd0F5Ukl5S0hyaDZ5RVZPdUVWWnpxY3R1WWdwb2NSdlZoTnVad2NRcXYwQndDclpGL2U3YWRRMkpuZ3BCSExBL2lkTS9jWjRUWm5BUEw5aGtnaENwdlpsTUtWSWlJV0lpRkNNRVM4cXNUMXJINVRkdXY4bTQ4RmhUblBTRG5TaFNScTJCam1uR2RZNTJmWVg5blVTNzl1M1A3YXJSWVN3dTVvK3I0d1F2UXF1eVphY2ZJTTlPVkh1ajd5QTJJRDB3aGxFeU9xZTVpTmd1QWV1ZkFrTGtPUkdWOG5sQW5yS0twVWZhdCtJS2FITXlJUTdiaWp4VG5mVnZ4V2xVODNaU0hucFZ1eXA4NlVmMDFHMkcvRlY4WGVRNTI4UHpBZ1A0amdObG92VWVzc3RGNkQ3TmtvL1dlTE1oRzYyM21acVAxTnRMeTY5YmF0OGhHNjYwSVo2UDExcjJ5MFhvTEI5bG92UllydjI0dDY1ci81YldNUWpaYXIzWW1veFcrZnhoaEkrbEQzR3F1N3MrcGYvd1BpYjRucy80dEFBQT0iLCJSZWNvcmRDb3VudCI6Nzc5NCwiUGFnZUluZGV4IjowfX0%3D&X_AJAX=true";
                    var result = _client.Post(pagex, header, "CustomersList.aspx");
                    var subResult = result.Substring("\"Values\":[[", "]],");
                    var guids = subResult.Matches("\"(.{8}-.{4}-.{4}-.{4}-.{12})\"");

                    var j = 0;
                    foreach (var g in guids)
                    {
                        var guid = g.Substring(1, g.Length - 2);
                        Console.WriteLine(guid);
                        // 获取详细数据
                        var detailResult = _client.Get(new Dictionary<string, string> { { "id", guid } },
                            "CustomersNewEdit.aspx");
                        var txtName = $"{i + 1}-{j + 1}.txt";
                        Console.WriteLine(txtName);
                        FileHelper.WriteText(Path.Combine(basePath, subPath, txtName), detailResult);
                        j++;
                    }
                }*/
                return;

                #endregion

            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            Console.ReadLine();
        }
    }
}
